<%--
  Created by IntelliJ IDEA.
  User: 君未洋
  Date: 2021/5/4
  Time: 11:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>if标签</title>
</head>
<body>
<%--
c:if标签
1.属性:test,必须的属性,用来接收boolean表达式,如果true,展示标签体内容,为false不展示
2.一般是用el表达式写在这里面,写在""里
--%>
<%
    int number = 3;
    request.setAttribute("number", number);
%>
<c:if test="${requestScope.number%2!=0}">
    ${requestScope.number}为奇数
</c:if>

</body>
</html>
